]> dgit.raspbian.org Git - gnome-shell.git/commit
WorkspaceThumbnails: animate the right workspace when creating by DND
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 16 Dec 2012 22:52:33 +0000 (23:52 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 17 Mar 2013 18:35:15 +0000 (19:35 +0100)
commitee0040ef1c84b153288862b1fcac2b48381ba04e
tree2c1ebf11caa9e6cd77c8b3ccad8e5fa9eb9c0c56
parent9e60a55dd723097cb0fa8af139e9c521e32f405b
WorkspaceThumbnails: animate the right workspace when creating by DND

To create a new workspace by dropping on the placeholder, we move all
the windows down one workspace and then wait for _checkWorkspaces() to
automatically create the empty one at the end.
This means that, from the implementation POV, the new workspace is not
the one created by DND but it's the last one, and this detail was exposed
in the UI because the animation was applied on that one.
Fix that by starting the animation manually from the DND code, and then
blocking the animation from happening when the new workspace is created
with a flag.

https://bugzilla.gnome.org/show_bug.cgi?id=685285
js/ui/workspaceThumbnail.js